package com.library.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * Banner
 * </p>
 *
 * @author myg
 * @since 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("banner_info")
@ApiModel(value = "Banner对象")
public class BannerInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "名称")
	@ExcelProperty("名称")
	private String name;
	@ApiModelProperty(value = "图片地址 如果是视频类型 该字段视频封面图片url")
	@ExcelProperty("图片地址 如果是视频类型 该字段视频封面图片url")
	private String url;
	@ApiModelProperty(value = "跳转地址")
	@ExcelProperty("跳转地址")
	private String target;
	@ApiModelProperty(value = "状态 0 下线 1 上线")
	@ExcelProperty("状态 0 下线 1 上线")
	private Integer status;
	@ApiModelProperty(value = "banner投放位置1 首页轮播图 2 产品页轮播图 3 帮助页轮播图")
	@ExcelProperty("1banner 2middle")
	private Integer position;
	@ApiModelProperty(value = "排序")
	@ExcelProperty("排序")
	private Integer sort;
	@ApiModelProperty(value = "banner 类型 1 是图片 2 视频")
	@ExcelProperty("banner 类型 1 是图片 2 视频")
	private Integer type;
	@ApiModelProperty(value = "视频地址")
	@ExcelProperty("视频地址")
	private String videoUrl;

	private Date createTime;


}
